
Imports storoomc

Namespace configNaming
    Namespace stornode
        Public Module stornode
            Public Const name As String = "stornode"
            Public Const port As String = "port"
            Public Const datapath As String = "datapath"
            Public Const atomcount As String = "atomcount"
            Public Const slicesize As String = "slicesize"
            Public Const slicecount As String = "slicecount"
            Public Const reserveDiskSize As String = "reserveDiskSize"
            Public Const enableStreamBuff As String = "enableStreamBuff"
            Public Const autodropDirtyData As String = "autodropDirtyData"
            Public Const memoryBuffSize As String = "memoryBuffSize"
            Public Const enablecache As String = "enablecache"
            Public Const distributeOperationHoldtime As String = "distributeOperationHoldtime"
            Public Const talkHoldtime As String = "talkHoldtime"
            Public Const talkLivetime As String = "talkLivetime"
            Public Const connectionCount As String = "connectionCount"
            Public Const threadcount As String = "threadcount"
            Public Const sliceType As String = "sliceType"
            Public Const slicesType As String = "slicesType"
        End Module

        Namespace defaultValue
            Public Module defaultValue
                Public Const port As Int32 = protocol.port.stornode
                Public Const datapath As String = ".\data"
                Public Const atomcount As UInt64 = 2 ^ 13
                Public Const slicesize As UInt64 = 2 ^ 27
                Public Const slicecount As Int32 = 1024
                Public Const reserveDiskSize As UInt64 = 1024 * 1024 * 128
                Public Const enableStreamBuff As Boolean = True
                Public Const autodropDirtyData As Boolean = True
                Public Const memoryBuffSize As String = "auto"
                Public Const enablecache As Boolean = False
                Public Const distributeOperationHoldtime As Int64 = 48000
                Public Const talkHoldtime As Int64 = talkTime.room2node.holdtime
                Public Const talkLivetime As Int64 = talkTime.room2node.livetime
                Public Const connectionCount As Int32 = storoomc.connectionCount.node
                Public Const threadcount As Int64 = storoomc.threadCount.node
                Public Const sliceType As String = "slice"
                Public Const slicesType As String = "slices"
            End Module
        End Namespace
    End Namespace

    Namespace memslices
        Public Module memslices
            Public Const name As String = "memslices"
            Public Const [type] As String = "type"
            Public Const memoryUsage As String = "memoryUsage"
            Public Const keyCount As String = "keyCount"
        End Module

        Namespace defaultValue
            Public Module defaultValue
                Public Const [type] As String = "mapslices"
                Public Const memoryUsage As String = "auto"
                Public Const keyCount As UInt64 = 128 * 1024
            End Module
        End Namespace
    End Namespace

    Namespace filter
        Public Module filter
            Public Const slicetype As String = "st"
            Public Const slicestype As String = "sst"
        End Module

        Namespace value
            Public Class slicetype
                Public Const slice As String = "s"
                Public Const slice2 As String = "s2"
                Public Const slice3 As String = "s3"
                Public Const slice4 As String = "s4"
                Public Const slice5 As String = "s5"
            End Class

            Public Class slicestype
                Public Const slices As String = "s"
                Public Const slices_hash As String = "sh"
            End Class
        End Namespace
    End Namespace

End Namespace
